<html>
<head>
</head>
<body>
<script language="javascript" type="text/javascript">
var imgdir = '.';
</script>
<script language="javascript" type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script language="javascript" type="text/javascript" src="pc2009.board.js"></script>
<script language="javascript" type="text/javascript">
jQuery(function(){
	var memo = pc2009.newMemo();
	var board = pc2009.newBoard([[1,2,3,4,5],[1,2,3,4,5],[1,2,3,4,5],[1,2,3,4,5],[1,2,3,4,5]], function(x, y, r){
		memo.regist(x, y, r);
	});
	var size_setting = pc2009.newSizeSetting(function(r){
		board.setR(r);
	});
	var button_bar = pc2009.newButtonBar([
		['clear.png', function(){
			board.clear();
			memo.clear();
		}],
		['undo.png', function(){
			board.undo(memo.undo());
		}]
	]);
	jQuery('#main')
			.append(board)
			.append(size_setting)
			.append(button_bar)
			.append(memo);
});
</script>
<div id="main"></div>
</body>
